import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/12 14:25
*/
public class Array2Test01 {
    public static void main(String[] args) {
        String[][] arr = new String[50][3];

        Scanner scanner = new Scanner(System.in);


        String[] zhangsan = new String[3];
        //---------------存储姓名------------------------------------
        System.out.println("请输入姓名");
        String name = scanner.nextLine();
        zhangsan[0] = name;
        //---------------存储年龄------------------------------------
        System.out.println("请输入年龄");
        String age = scanner.nextLine();
        zhangsan[1] = age;
        //---------------存储性别------------------------------------
        System.out.println("请输入性别");
        String sex = scanner.nextLine();
        zhangsan[2] = sex;

        //---------------把一维数组存储到二维数组中------------------------------------
        arr[0] = zhangsan;



        String[] lisi = new String[3];
        //---------------存储姓名------------------------------------
        System.out.println("请输入姓名");
        String lisiName = scanner.nextLine();
        zhangsan[0] = lisiName;
        //---------------存储年龄------------------------------------
        System.out.println("请输入年龄");
        String lisiAge = scanner.nextLine();
        zhangsan[1] = lisiAge;
        //---------------存储性别------------------------------------
        System.out.println("请输入性别");
        String lisiSex = scanner.nextLine();
        zhangsan[2] = lisiSex;

        //---------------把一维数组存储到二维数组中------------------------------------
        arr[1] = lisi;
    }
}
